import { http } from '@/utils/http'

export function categoryList(data){
	return http({
		url:'/system/repair/category/',
		method: 'GET',
		data:data
	})
}

export function parkList(data){
	return http({
		url:'/system/repair/park/',
		method: 'GET',
		data:data
	})
}

//获取员工列表
export function employeeList(data){
	return http({
		url:'/system/employee/employee_list',
		method: 'GET',
		data:data
	})
}

//创建工单快速对接
export function quickRepair(data){
	return http({
		url:'/system/quick_repair/',
		method: 'POST',
		data:data
	})
}

//创建访客申请
export function Createvisitor(data){
	return http({
		url:'/system/visitor/',
		method: 'POST',
		data:data
	})
}

//获取访客申请列表
export function getVisitor(data){
	return http({
		url:'/system/visitor/',
		method: 'GET',
		data:data
	})
}

//获取通行证
export function getPass(data){
	return http({
		url:'/system/visitor/pass/',
		method: 'GET',
		data:data
	})
}

//创建工单
export function orderUpdate(data){
	return http({
		url:'/system/repair/order/',
		method: 'POST',
		data:data
	})
}

//查询工单进度
export function getOrder(data){
	return http({
		url:'/system/repair/order/',
		method: 'GET',
		data:data
	})
}

//查询工单id详情
export function getOrderID(id){
	return http({
		url:'/system/repair/order/' + id + '/',
		method: 'GET',
	})
}